package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租车订单对象 zc_orders
 * 
 * @author ruoyi
 * @date 2025-04-03
 */
public class ZcOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long orderId;

    /** 用户 ID */
    @Excel(name = "用户 ID")
    private Long userId;

    /** 车辆 ID */
    @Excel(name = "车辆 ID")
    private Long vehicleId;

    /** 取车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "取车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 还车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "还车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 取车地点 */
    @Excel(name = "取车地点")
    private String startLocation;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private BigDecimal totalPrice;

    /** 订单状态（待支付、已支付、已完成、已取消等） */
    @Excel(name = "订单状态", readConverterExp = "待=支付、已支付、已完成、已取消等")
    private String status;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setVehicleId(Long vehicleId) 
    {
        this.vehicleId = vehicleId;
    }

    public Long getVehicleId() 
    {
        return vehicleId;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setStartLocation(String startLocation) 
    {
        this.startLocation = startLocation;
    }

    public String getStartLocation() 
    {
        return startLocation;
    }

    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("vehicleId", getVehicleId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("startLocation", getStartLocation())
            .append("totalPrice", getTotalPrice())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
